package com.housediyadmin.command.buildingCommand
{
	import com.housediyadmin.events.buildingEvents.GetBuildingEvent;
	import com.housediyadmin.model.BuildingModel;
	
	import org.robotlegs.mvcs.Command;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/11/30
	 */	
	public class UpdateBuildingCommand extends Command
	{
		[Inject]
		public var event:GetBuildingEvent;
		
		[Inject]
		public var buildingModel:BuildingModel;
		
		override public function execute():void
		{
			buildingModel.updateBuildingModel(event.builidngArray);
		}
	}
}